import request from '@/utils/request'

// 查询商户认证列表
export function listVerification(query) {
  return request({
    url: '/system/verification/list',
    method: 'get',
    params: query
  })
}

// 查询商户认证详细
export function getVerification(id) {
  return request({
    url: '/system/verification/' + id,
    method: 'get'
  })
}

// 新增商户认证
export function addVerification(data) {
  return request({
    url: '/system/verification',
    method: 'post',
    data: data
  })
}

// 修改商户认证
export function updateVerification(data) {
  return request({
    url: '/system/verification',
    method: 'put',
    data: data
  })
}

// 删除商户认证
export function delVerification(id) {
  return request({
    url: '/system/verification/' + id,
    method: 'delete'
  })
}
// 根据商户电话发查看商户是否存在
export function postyanzengma(phone) {
  return request({
    url: '/system/verification/yanzhengma/post/' + phone,
    method: 'post',
  })
}
//根据sysuserid查找商户认证
export function listVerificationBySysUserId(sysUserId) {
  return request({
    url: '/system/verification/list/sysUserId/' + sysUserId,
    method: 'get',
  })
}
